﻿@{
    Layout = null;
}
<!DOCTYPE html> 
<html>
    <head>
        <title>@Language.Get("团队管理")</title>
         @Html.Partial("commonMeta")
        <link rel="stylesheet" href="~/css/product.css?v=@Wholesaler.Common.Version.Get" />
        <link href="~/Css/stock.css?v=@Wholesaler.Common.Version.Get" rel="stylesheet" />
        <link href="~/Css/teamorder.css?v=@Wholesaler.Common.Version.Get" rel="stylesheet"/>
        <style type="text/css">
        	.list_user ul li{ margin-bottom: 8px;}
        	#_role { position: relative;}
        	#_role >label{ display: inline-block; width: 24%; text-align: right; position: absolute; top: 2px}
        	#_role > ul{display: inline-block; margin-left: 24%;}

        </style>
    </head>
    <body>
    	<div class="views">
			<div class="view view-main">
				<div class="navbar">
					<div class="navbar-inner">
			            <header id="common_header">
			                <div class="menu_icon_box" id="show_menu_btn">
			                	<em class="menu-btn"></em>
			                </div>
			                <div class="menu_icon_box" id="hide_menu_btn">
			                	<em class="colse-nav-btn"></em>
			                </div>			 
			                <h2>@Language.Get("团队管理")</h2>
			            </header>
            			@Html.Partial("teammenu")
            			<div class="subnavbar" style="display: block;padding: 0;height:auto;background-color: #fff;padding-top: 5px;">
	            			<div class="list_status clearfix" id="_sysStatus">
			                   	<ul>
				                   <li data-value="1" class="add_blue">@Language.Get("正常")</li>
				                   <li data-value="2">@Language.Get("待审")<span style="display: none;">(<b id="wait_user">0</b>)</span></li>
				                   <li data-value="0">@Language.Get("禁用")</li>
				                   <li data-value="-1">@Language.Get("已删")</li>
			                  	</ul>
			                  	<span id="show_term_btn" class="add_blue">@Language.Get("筛选")</span>
			                </div>
			
			                <div class="check_btn_box li_btn_box clearfix">
			                   <ul>
				                   <li><span class="add add_blue add_min" id="add_btn">@Language.Get("添加")</span></li>
			                    </ul>
			                </div>
			                <table class="product_table" id="product_table_fixed" style="padding-top: 3px;">
		                        <thead>
		                            <tr>
                                        <th style='width:8%' class="check_head_box"></th>
                                        <th class='nickname' style='width:12%'>@Language.Get("账号")</th>
                                        <th style='width:12%'>@Language.Get("名字")</th>
                                        <th style='width:10%'>@Language.Get("职能")</th>
                                        <th style='width:10%'>@Language.Get("部门")</th>
                                        <th style='width:10%'>@Language.Get("性别")</th>
                                        
                                        <th title="@Language.Get("登录次数")" style='width:10%'>@Language.Get("次数")<i class="sort sort_normal" data-sort="LoginCount"></i></th>
                                        <th title="@Language.Get("上传登录时间")" style='width:12%'>@Language.Get("上次")<i class="sort sort_asc" data-sort-direct="asc" data-sort="LastActiveTime"></i></th>
                                        <th style='width:10%'>@Language.Get("状态")<i class="sort sort_normal" data-sort="SysStatus"></i></th>
                                        <th style='width:15%'>@Language.Get("操作")</th>

                                    </tr>
		                        </thead>
		                        <tbody id="stock_body_hide">
		
		                        </tbody>
		                    </table>
			            </div>
					</div>
			    </div> 
				<div class="pages navbar-through toolbar-through">
		          	<div data-page="index" class="page">
				        <!--内容区start-->
						<div class="page-content" id="app_no_header">			
					         @* 库存列表start *@
			                <div id="inventory" style="background-color: #fff;">
		                        <table class="product_table table_hide" id="product_table">
	                                <thead>
	                                    <tr>
	                                        <th style='width:8%' class="check_head_box"></th>
	                                        <th class='nickname' style='width:12%'>@Language.Get("账号")</th>
	                                        <th style='width:12%'>@Language.Get("名字")</th>
	                                        <th style='width:10%'>@Language.Get("职能")</th>
	                                        <th style='width:10%'>@Language.Get("部门")</th>
	                                        <th style='width:10%'>@Language.Get("性别")</th>
	                                        
	                                        <th title="@Language.Get("登录次数")" style='width:10%'>@Language.Get("次数")<i class="sort sort_normal" data-sort="LoginCount"></i></th>
	                                        <th title="@Language.Get("上传登录时间")" style='width:12%'>@Language.Get("上次")<i class="sort sort_asc" data-sort-direct="asc" data-sort="LastActiveTime"></i></th>
	                                        <th style='width:10%'>@Language.Get("状态")<i class="sort sort_normal" data-sort="SysStatus"></i></th>
	                                        <th style='width:15%'>@Language.Get("操作")</th>
	                                    </tr>
	                                </thead>
	                                <tbody id="stock_body">
	
	                                </tbody>
	                            </table>
		                   </div>					
			                <p class="totalcount">@Language.Get("显示前500条")<a class="diasType"></a></p>      
        				</div>
        				<!--内容区end-->
		       		</div>
		       </div>
		       
		    <!-- 添加start -->
            <div class="popup modify_pop_box add_box">
	            <div class="pop">
            	<span class="colse_popbox close-popup">X</span>
                <h5>@Language.Get("添加团队")</h5>
                <form class="form-inline add_form" style="padding: 5px 5px 5px 30px;" method="post" id="add_data">
                	<input type="text" id="id_input" style="display: none;"/> 
                    <div class="form-group">
                        <label for="UserName"><b style="color:red;font-weight:bold;">*</b>@Language.Get("帐号")：</label>
                        <input type="text" class="form-control" id="UserName" placeholder="帐号" name="UserName">  <!-- onblur="UserNameIsExist();" -->
                    </div>
                    <div class="form-group">
                        <label for="UserPassword"><b style="color:red;font-weight:bold;">*</b>@Language.Get("密码")：</label>
                        <input type="password" class="form-control" id="UserPassword" placeholder="@Language.Get("密码")" name="UserPassword" />
                    </div>
                    <div class="form-group">
                        <label for="RealName"><b style="color:red;font-weight:bold;">*</b>@Language.Get("名字")：</label>
                        <input type="text" class="form-control" id="RealName" placeholder="@Language.Get("名字")" name="RealName">
                    </div>
                    <div class="form-group">
                        <label for="RoleID"><b style="color:red;font-weight:bold;">*</b>@Language.Get("职能")：</label>
                        <select class="form-control" name="RoleID" id="RoleID">
                            
                        </select>
                        <p class="more" style="display: none;"><a href="/team/function" title="@Language.Get("点击了解职能")">@Language.Get("了解职能")</a></p>
                    </div>
                    <div class="form-group">
                        <label for="Mobile">Mobile：</label>
                        <input type="text" class="form-control" id="Mobile" placeholder="Mobile" name="Mobile"> <!--onblur="MobileIsExist();" -->
                    </div>
                    <div class="form-group">
                        <label for="Qq">Qq：</label>
                        <input type="text" class="form-control" id="Qq" placeholder="Qq" name="Qq">
                    </div>
                    <div class="form-group">
                        <label for="Email">Email：</label>
                        <input type="text" class="form-control" id="Email" placeholder="Email" name="Email">
                    </div>
                    <div class="form-group">
                        <label for="Skype">Skype：</label>
                        <input type="text" class="form-control" id="Skype" placeholder="Skype" name="Skype">
                    </div>
                    <div class="form-group">
                        <label for="RapnetAccount">RapID：</label>
                        <input type="text" class="form-control" id="RapnetAccount" placeholder="RapID" name="RapnetAccount">
                    </div>
                    <div class="form-group">
                        <label for="Department">@Language.Get("部门")：</label>
                        <input type="text" class="form-control" id="Department" placeholder="@Language.Get("部门")" name="Department">
                    </div>
                    <br />
                    <div class="form-group">
                        <label for="SysStatus">@Language.Get("状态")：</label>
                        <select class="form-control" name="SysStatus" id="SysStatus">
                            <option value="1" selected="selected">@Language.Get("正常")</option>
                            <option value="2">@Language.Get("待审")</option>
                        </select>
                    </div>                    
                    <div class="form-group">
                        <label for="Sex">@Language.Get("性别")：</label>
                        <select class="form-control" name="Sex" id="Sex">
                            <option value="2" selected="selected">@Language.Get("保密")</option>
                            <option value="1">@Language.Get("男")</option>
                            <option value="0">@Language.Get("女")</option>
                        </select>
                    </div>
                    <div class="form-group remarks-group">
                        <label for="Comments">@Language.Get("备注")：</label>
                        <textarea id="Comments" name="Comments" placeholder="@Language.Get("采购备注")" class="form-text" cols="65"></textarea>
                   </div>
                    <div class="confirm">
	                    <input type="reset" class="btn btn-danger supbtn" id="reset_btn" value="@Language.Get("重置")" />
	                    <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")" /> <!-- onclick="AddUser();" -->
                	</div>
                    <em>@Language.Get("提示：帐号一旦确定将无法修改")</em>
                </form>
            </div>
        </div>
        <!-- 添加end -->

			<!-- 修改start --->
        <div class="popup modify_pop_box edit_box">
	            <div class="pop">
            	<span class="colse_popbox close-popup">X</span>
                <h5>@Language.Get("修改团队")</h5>
                <form class="form-inline edit_form" id="edit_data" style="padding: 5px 5px 5px 30px;" method="post">
                    <div class="form-group" style="display: none">
                        <label for="UserID">@Language.Get("团队号")：</label>
                        <input type="text" class="form-control" id="_UserID" placeholder="@Language.Get("帐号")" name="UserID">
                    </div>
                    <div class="form-group">
                        <label for="UserName">@Language.Get("帐号")：</label>
                        <input type="text" class="form-control" id="_UserName" placeholder="@Language.Get("帐号")" name="UserName"  readonly="readonly">
                    </div>
                    <div class="form-group">
                        <label for="UserPassword">@Language.Get("密码")：</label>
                        <input type="password" class="form-control" id="_UserPassword" placeholder="密码")" name="UserPassword" value="******" />
                    </div>
                    <div class="form-group">
                        <label for="RealName">@Language.Get("名字")：</label>
                        <input type="text" class="form-control" id="_RealName" placeholder="名字")" name="RealName">
                    </div>
                    <div class="form-group">
                        <label for="RoleID">@Language.Get("职能")：</label>
                        <select class="form-control" name="RoleID" id="_RoleID">
                            
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Mobile">Mobile：</label>
                        <input type="text" class="form-control" id="_Mobile" placeholder="Mobile" name="Mobile" >
                    </div>
                    <div class="form-group">
                        <label for="Qq">Qq：</label>
                        <input type="text" class="form-control" id="_Qq" placeholder="Qq" name="Qq">
                    </div>
                    <div class="form-group">
                        <label for="Email">Email：</label>
                        <input type="text" class="form-control" id="_Email" placeholder="Email" name="Email">
                    </div>
                    <div class="form-group">
                        <label for="Skype">Skype：</label>
                        <input type="text" class="form-control" id="_Skype" placeholder="Skype" name="Skype">
                    </div>
                    <div class="form-group">
                        <label for="RapnetAccount">RapID：</label>
                        <input type="text" class="form-control" id="_RapnetAccount" placeholder="RapID" name="RapnetAccount">
                    </div>
                    <div class="form-group">
                        <label for="Department">@Language.Get("部门")：</label>
                        <input type="text" class="form-control" id="_Department" placeholder="@Language.Get("部门")" name="Department">
                    </div>
                    <br />
                    <div class="form-group">
                        <label for="SysStatus">@Language.Get("状态")：</label>
                        <select class="form-control" name="SysStatus" id="_SysStatus">
                            <option value="1" selected="selected">@Language.Get("正常")</option>
                            <option value="2">@Language.Get("待审")</option>
                            <option value="0">@Language.Get("禁止")</option>
                            <option value="-1">@Language.Get("已删")</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Sex">@Language.Get("性别")：</label>
                        <select class="form-control" name="Sex" id="_Sex">
                            <option value="2" selected="selected">@Language.Get("保密")</option>
                            <option value="1">@Language.Get("男")</option>
                            <option value="0">@Language.Get("女")</option>
                        </select>
                    </div>
                    <div class="form-group remarks-group">
                        <label for="Comments">@Language.Get("备注")：</label>
                        <textarea id="_Comments" name="Comments" placeholder="@Language.Get("采购备注")" class="form-text" cols="65"></textarea>
                   </div>
                    <div class="confirm">
	                    <!--<input type="reset" class="btn btn-danger supbtn" value="重置" />-->
	                    <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")" /> <!-- onclick="AddUser();" -->
                	</div>
                    <em>@Language.Get("提示：帐号不能修改")</em>
                </form>
            </div>
        </div>
        <!-- 修改end --->
        
        @*筛选start*@
        <div class="popup user_filter_box">
    		<div class="pop">
	        <span class="colse_popbox close-popup">X</span>
	        <h5>@Language.Get("客户筛选")</h5>
	        <form class="form-inline" style="padding: 5px 5px 5px 10px;">
	        	<div class="list_status list_user clearfix" id="_role">
	        		<label>@Language.Get("职能")：</label>
			        <ul class="term">
				        <li value="1" title="@Language.Get("系统管理员")">@Language.Get("管理员")</li>
				        <li value="2" title="@Language.Get("财务会计")">@Language.Get("会计员")</li>
				        <li value="3">@Language.Get("业务员")</li>
				        <li value="4">@Language.Get("采购员")</li>
				        <li value="5" title="@Language.Get("物流员兼库管员")">@Language.Get("物流员")</li>
				        <li value="6" title="@Language.Get("业务员兼采购员")">@Language.Get("业务经理")</li>
			        </ul>
			    </div>
	        	<div class="form-group">
	            	<label>@Language.Get("账号")：</label>
	            	<input class="form-control" type="text" placeholder="@Language.Get("帐号")" id="_userName" />
	            </div>
	            <div class="form-group">
	            	<label>@Language.Get("电话")：</label>
	            	<input class="form-control" type="text" placeholder="@Language.Get("电话")" id="_mobile" />
	            </div>
                <div class="confirm">
                	<input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")"/>
	            	<input type="button" class="btn btn-danger supbtn" id="confirm_btn"  value="@Language.Get("确定")"/>   <!--onclick="LoadUser()"-->
            	</div>
               </form>
	    	</div>
	    </div>
    	@*筛选end*@
    	
    </div>
    </div>
    </body>   
</html>
@Html.Partial("commonTeamJs")
<script src="~/Js/jquery.validate.min.js"></script>
<script src="~/Js/chromatable.js"></script>
<script>
	var APP=is_app();
//	 var PARAMS=@Html.Raw(ViewBag.Param);
//	 if(APP){
//	 	PARAMS=eval('('+PARAMS+')');
//	 }
    var roleID = $.cookie("RoleID");//全局变量
    var sales="";//全局业务变量
    var purchases="";//全局采购变量8-27
</script>
<script src="~/Js/jquery.form.js"></script>
<script src="~/Js/sort/sort.js" type="text/javascript"></script>
<script src="~/js/team/team.js?v=@Wholesaler.Common.Version.Get" type="text/javascript"></script>



